using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class PT_ServiceListManagerBase
    {
        public PT_ServiceListManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity Insert(PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity Update(PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.Update(obj);             
        }
 
        public PT_ServiceListEntity Delete(PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.Delete(obj);             
        }
        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CanEdit 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCanEdit (bool CanEdit )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEdit = CanEdit;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CanEdit");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CanEditGCN duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCanEditGCN (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CanEditGCN");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CanEditGCN 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCanEditGCN (bool CanEditGCN )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGCN = CanEditGCN;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CanEditGCN");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CanEditGiaBan duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCanEditGiaBan (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CanEditGiaBan");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CanEditGiaBan 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCanEditGiaBan (bool CanEditGiaBan )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGiaBan = CanEditGiaBan;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CanEditGiaBan");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CanEditGiamGia duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCanEditGiamGia (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CanEditGiamGia");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CanEditGiamGia 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCanEditGiamGia (bool CanEditGiamGia )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGiamGia = CanEditGiamGia;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CanEditGiamGia");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CanEditNoiDung duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCanEditNoiDung (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CanEditNoiDung");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CanEditNoiDung 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCanEditNoiDung (bool CanEditNoiDung )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditNoiDung = CanEditNoiDung;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CanEditNoiDung");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCreatedBy (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedBy 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCreatedBy (string CreatedBy )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CreatedBy = CreatedBy;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCreatedDate (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedDate 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByCreatedDate (DateTime CreatedDate )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CreatedDate = CreatedDate;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteById (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteById (int Id )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.Id = Id;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByIsDeleted (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"IsDeleted");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IsDeleted 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByIsDeleted (bool IsDeleted )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.IsDeleted = IsDeleted;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"IsDeleted");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ServiceCode duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByServiceCode (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"ServiceCode");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ServiceCode 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByServiceCode (string ServiceCode )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceCode = ServiceCode;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"ServiceCode");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ServiceName duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByServiceName (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"ServiceName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ServiceName 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByServiceName (string ServiceName )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceName = ServiceName;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"ServiceName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ServiceType duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByServiceType (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"ServiceType");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ServiceType 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByServiceType (string ServiceType )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceType = ServiceType;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"ServiceType");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByUpdatedBy (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedBy 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByUpdatedBy (string UpdatedBy )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.UpdatedBy = UpdatedBy;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByUpdatedDate (PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedDate 
        /// </summary>
        /// <returns>PT_ServiceListEntity</returns>
        public PT_ServiceListEntity DeleteByUpdatedDate (DateTime UpdatedDate )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.UpdatedDate = UpdatedDate;  
            return (PT_ServiceListEntity)Adapter.DeleteByField(obj,"UpdatedDate");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public PT_ServiceListEntity Select(PT_ServiceListEntity obj)
        { 
            return (PT_ServiceListEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(PT_ServiceListEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(PT_ServiceListEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new PT_ServiceListEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new PT_ServiceListEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<PT_ServiceListEntity> SelectAllLST()
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new PT_ServiceListEntity()),new PT_ServiceListEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<PT_ServiceListEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new PT_ServiceListEntity(),option),new PT_ServiceListEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEdit duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEdit (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"CanEdit");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEdit duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEdit (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CanEdit",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEdit duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCanEditLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEdit"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEdit duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCanEditLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CanEdit",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEdit 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEdit (bool CanEdit )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEdit = CanEdit;  
            return Adapter.SelectByField(obj,"CanEdit");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEdit duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEdit (bool CanEdit, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEdit = CanEdit;  
            return Adapter.SelectByField(obj,"CanEdit",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEdit 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCanEditLST (bool CanEdit )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEdit = CanEdit;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEdit"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEdit duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCanEditLST (bool CanEdit, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEdit = CanEdit;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEdit",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGCN duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditGCN (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"CanEditGCN");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGCN duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditGCN (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CanEditGCN",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGCN duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCanEditGCNLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEditGCN"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGCN duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCanEditGCNLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CanEditGCN",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGCN 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditGCN (bool CanEditGCN )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGCN = CanEditGCN;  
            return Adapter.SelectByField(obj,"CanEditGCN");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGCN duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditGCN (bool CanEditGCN, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGCN = CanEditGCN;  
            return Adapter.SelectByField(obj,"CanEditGCN",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGCN 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCanEditGCNLST (bool CanEditGCN )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGCN = CanEditGCN;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEditGCN"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGCN duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCanEditGCNLST (bool CanEditGCN, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGCN = CanEditGCN;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEditGCN",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiaBan duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditGiaBan (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"CanEditGiaBan");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiaBan duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditGiaBan (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CanEditGiaBan",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiaBan duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCanEditGiaBanLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEditGiaBan"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiaBan duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCanEditGiaBanLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CanEditGiaBan",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiaBan 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditGiaBan (bool CanEditGiaBan )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGiaBan = CanEditGiaBan;  
            return Adapter.SelectByField(obj,"CanEditGiaBan");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiaBan duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditGiaBan (bool CanEditGiaBan, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGiaBan = CanEditGiaBan;  
            return Adapter.SelectByField(obj,"CanEditGiaBan",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiaBan 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCanEditGiaBanLST (bool CanEditGiaBan )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGiaBan = CanEditGiaBan;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEditGiaBan"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiaBan duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCanEditGiaBanLST (bool CanEditGiaBan, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGiaBan = CanEditGiaBan;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEditGiaBan",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiamGia duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditGiamGia (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"CanEditGiamGia");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiamGia duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditGiamGia (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CanEditGiamGia",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiamGia duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCanEditGiamGiaLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEditGiamGia"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiamGia duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCanEditGiamGiaLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CanEditGiamGia",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiamGia 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditGiamGia (bool CanEditGiamGia )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGiamGia = CanEditGiamGia;  
            return Adapter.SelectByField(obj,"CanEditGiamGia");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiamGia duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditGiamGia (bool CanEditGiamGia, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGiamGia = CanEditGiamGia;  
            return Adapter.SelectByField(obj,"CanEditGiamGia",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiamGia 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCanEditGiamGiaLST (bool CanEditGiamGia )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGiamGia = CanEditGiamGia;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEditGiamGia"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditGiamGia duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCanEditGiamGiaLST (bool CanEditGiamGia, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditGiamGia = CanEditGiamGia;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEditGiamGia",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditNoiDung duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditNoiDung (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"CanEditNoiDung");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditNoiDung duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditNoiDung (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CanEditNoiDung",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditNoiDung duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCanEditNoiDungLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEditNoiDung"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditNoiDung duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCanEditNoiDungLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CanEditNoiDung",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditNoiDung 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditNoiDung (bool CanEditNoiDung )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditNoiDung = CanEditNoiDung;  
            return Adapter.SelectByField(obj,"CanEditNoiDung");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditNoiDung duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCanEditNoiDung (bool CanEditNoiDung, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditNoiDung = CanEditNoiDung;  
            return Adapter.SelectByField(obj,"CanEditNoiDung",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditNoiDung 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCanEditNoiDungLST (bool CanEditNoiDung )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditNoiDung = CanEditNoiDung;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEditNoiDung"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CanEditNoiDung duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCanEditNoiDungLST (bool CanEditNoiDung, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CanEditNoiDung = CanEditNoiDung;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CanEditNoiDung",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CreatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCreatedByLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCreatedByLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CreatedBy",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (string CreatedBy )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CreatedBy = CreatedBy;  
            return Adapter.SelectByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (string CreatedBy, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CreatedBy = CreatedBy;  
            return Adapter.SelectByField(obj,"CreatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCreatedByLST (string CreatedBy )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CreatedBy = CreatedBy;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCreatedByLST (string CreatedBy, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CreatedBy = CreatedBy;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CreatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCreatedDateLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByCreatedDateLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CreatedDate",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (DateTime CreatedDate )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CreatedDate = CreatedDate;  
            return Adapter.SelectByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (DateTime CreatedDate, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CreatedDate = CreatedDate;  
            return Adapter.SelectByField(obj,"CreatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCreatedDateLST (DateTime CreatedDate )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CreatedDate = CreatedDate;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByCreatedDateLST (DateTime CreatedDate, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.CreatedDate = CreatedDate;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByIdLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByIdLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Id",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (int Id )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (int Id, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByIdLST (int Id )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.Id = Id;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByIdLST (int Id, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.Id = Id;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsDeleted (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"IsDeleted");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsDeleted (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"IsDeleted",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByIsDeletedLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsDeleted"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByIsDeletedLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"IsDeleted",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsDeleted (bool IsDeleted )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.IsDeleted = IsDeleted;  
            return Adapter.SelectByField(obj,"IsDeleted");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsDeleted (bool IsDeleted, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.IsDeleted = IsDeleted;  
            return Adapter.SelectByField(obj,"IsDeleted",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByIsDeletedLST (bool IsDeleted )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.IsDeleted = IsDeleted;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsDeleted"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByIsDeletedLST (bool IsDeleted, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.IsDeleted = IsDeleted;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsDeleted",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByServiceCode (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"ServiceCode");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByServiceCode (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ServiceCode",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceCode duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByServiceCodeLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ServiceCode"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceCode duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByServiceCodeLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ServiceCode",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceCode 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByServiceCode (string ServiceCode )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceCode = ServiceCode;  
            return Adapter.SelectByField(obj,"ServiceCode");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByServiceCode (string ServiceCode, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceCode = ServiceCode;  
            return Adapter.SelectByField(obj,"ServiceCode",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceCode 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByServiceCodeLST (string ServiceCode )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceCode = ServiceCode;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ServiceCode"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByServiceCodeLST (string ServiceCode, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceCode = ServiceCode;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ServiceCode",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByServiceName (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"ServiceName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByServiceName (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ServiceName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceName duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByServiceNameLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ServiceName"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceName duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByServiceNameLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ServiceName",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceName 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByServiceName (string ServiceName )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceName = ServiceName;  
            return Adapter.SelectByField(obj,"ServiceName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByServiceName (string ServiceName, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceName = ServiceName;  
            return Adapter.SelectByField(obj,"ServiceName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceName 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByServiceNameLST (string ServiceName )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceName = ServiceName;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ServiceName"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByServiceNameLST (string ServiceName, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceName = ServiceName;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ServiceName",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceType duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByServiceType (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"ServiceType");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceType duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByServiceType (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ServiceType",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceType duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByServiceTypeLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ServiceType"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceType duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByServiceTypeLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ServiceType",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceType 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByServiceType (string ServiceType )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceType = ServiceType;  
            return Adapter.SelectByField(obj,"ServiceType");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceType duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByServiceType (string ServiceType, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceType = ServiceType;  
            return Adapter.SelectByField(obj,"ServiceType",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceType 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByServiceTypeLST (string ServiceType )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceType = ServiceType;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ServiceType"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ServiceType duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByServiceTypeLST (string ServiceType, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.ServiceType = ServiceType;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ServiceType",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UpdatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByUpdatedByLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByUpdatedByLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UpdatedBy",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (string UpdatedBy )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.UpdatedBy = UpdatedBy;  
            return Adapter.SelectByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (string UpdatedBy, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.UpdatedBy = UpdatedBy;  
            return Adapter.SelectByField(obj,"UpdatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByUpdatedByLST (string UpdatedBy )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.UpdatedBy = UpdatedBy;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByUpdatedByLST (string UpdatedBy, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.UpdatedBy = UpdatedBy;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (PT_ServiceListEntity obj)
        { 
            return Adapter.SelectByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByUpdatedDateLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectByUpdatedDateLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UpdatedDate",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (DateTime UpdatedDate )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.UpdatedDate = UpdatedDate;  
            return Adapter.SelectByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (DateTime UpdatedDate, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.UpdatedDate = UpdatedDate;  
            return Adapter.SelectByField(obj,"UpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByUpdatedDateLST (DateTime UpdatedDate )
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.UpdatedDate = UpdatedDate;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate"),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_ServiceListEntity> SelectByUpdatedDateLST (DateTime UpdatedDate, SelectOptions option)
        { 
            PT_ServiceListEntity obj = new PT_ServiceListEntity();
            obj.UpdatedDate = UpdatedDate;  
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate",option),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectWithConditionLST (PT_ServiceListEntity obj)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new PT_ServiceListEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<PT_ServiceListEntity></returns>
        public List<PT_ServiceListEntity> SelectWithConditionLST (PT_ServiceListEntity obj,SelectOptions option)
        { 
            return  (List<PT_ServiceListEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new PT_ServiceListEntity());
        }

}
}
